# -*-coding:utf-8-*-
import json
import pandas as pd
import numpy as np
import redis
import time
import requests
import sys
from datetime import datetime
from websocket import create_connection
from loguru import logger

pool = redis.ConnectionPool(host='localhost',
                            port=6379,
                            decode_responses=True,
                            db=0)
r = redis.Redis(connection_pool=pool)


r.get('BTCBUSD_depth')
r.get('ETHBUSD_depth')

r.lrange('btcbusd_trade', 0, 10)
r.lrange('ethbusd_trade', 0, 10)

r.llen('btcbusd_trade')
r.llen('ethbusd_trade')

a = r.get('BTCBUSD_depth')
b = r.get('BTCBUSD_depth')
